<div class="pa">
  <h2>个人中心</h2>
  <hr class="tl"/>
  <div class="clearfix">
    <div class="span-4 colborder mh-35">
      <%= render 'users/sidebar' %>
    </div>
    <div class="span-18 last">
      <h3>我的留言</h3>
      <hr/>
      <table>
        <tr>
          <th>编号</th>
          <th>留言内容</th>
          <th>时间</th>
        </tr>
        <% @feedbacks.each do |feedback| %>
          <tr>
            <td><%= feedback.id %></td>
            <td><%= feedback.content %></td>
            <td><%= feedback.created_at.strftime('%Y-%m-%d') %></td>
          </tr>
          <% feedback.replies.each do |reply| %>
          <tr>
            <td>田螺姑娘：</td>
            <td>
              <%= reply.content %>
            </td>
            <td><%= reply.created_at.strftime('%Y-%m-%d') %></td>
          </tr>
          <% end %>
        <% end %>
      </table>
    </div>
  </div>
</div>